# compiler settings
CXX = g++
CXXFLAGS = -Wall -std=c++20 -fdiagnostics-color=always

# target file
TARGET = main

# source code files
SRCS = main.cpp swap.cpp

# Object file to generate
OBJS = $(SRCS:.cpp=.o)

# compile executable files
$(TARGET): $(OBJS)
	$(CXX) $(CXXFLAGS) -o $(TARGET) $(OBJS)

# dependency 
main.o: main.cpp swap.h
swap.o: swap.cpp swap.h

# clean command
clean:
	rm -rf $(OBJS) $(TARGET)

	
